package com.tiger.lbs;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
 * 地址
 * @author andy
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Address {
	private final String city;
	private final String district;
	private final String name;
	private final Coordinate location;
	
	public Address() {
		this(null, null, null, null);
	}
	
	public Address(String city, String district, String name, Coordinate location) {
		this.city = city;
		this.district = district;
		this.name = name;
		this.location = location;
	}

	public String getCity() {
		return city;
	}

	public String getDistrict() {
		return district;
	}

	public String getName() {
		return name;
	}

	public Coordinate getLocation() {
		return location;
	}
	
	@Override
	public String toString() {
		return city + district + name;
	}

}